// Arup Guha
// 1/7/2010
// Written to test all the Point classes.

import java.awt.*;

public class TestPoint {
	
	public static void main(String[] arg) {
		
		Point[] myPoints = new Point[5];
		
		myPoints[0] = new Point(3, 5);
		myPoints[1] = new ThreeDimensionalPoint(3, 5, 7);
		myPoints[2] = new ColoredPoint();
		myPoints[3] = new Colored3DPoint(7, 1, 3, Color.GREEN);
		myPoints[4] = new ColoredPoint(0, 0, Color.BLUE);
		
		// Just print them all out.
		for (Point p: myPoints) 
			System.out.println(p);
		
		for (int i=0; i<5; i++)
			for (int j=0; j<5; j++)
				if (i!=j && myPoints[i].equals(myPoints[j]))
					System.out.println("Points "+i+" "+j+" are equal.");
					
		myPoints[2].translate(3, 5);
		myPoints[3].translate(-4, 4);
			
		System.out.println();
		for (int i=0; i<5; i++)
			for (int j=0; j<5; j++)
				if (i!=j && myPoints[i].equals(myPoints[j]))
					System.out.println("Points "+i+" "+j+" are equal.");
				
		ThreeDimensionalPoint p = (ThreeDimensionalPoint)myPoints[3];
		p.translate(0,0,4);
		
		System.out.println();
		for (int i=0; i<5; i++)
			for (int j=0; j<5; j++)
				if (i!=j && myPoints[i].equals(myPoints[j]))
					System.out.println("Points "+i+" "+j+" are equal.");
			
	}
}